<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var f = prompt("请输入分数")
        if (f < 60 && f > 0) {
            document.write("你的分数不及格")
        } else if (f >= 60 && f < 80) {
            document.write("你的分数及格")
        } else if (f >= 80 && f < 90) {
            document.write("你的分数良好")
        } else if (f >= 90 && f <= 100) {
            document.write("优秀")
        } else {
            document.write("你输入的分数有误，请输入正确的分数")
        }
    </script>
</head>

<body>

</body>

</html>